//
//  NetworkEngine.h
//  student
//
//  Created by JCai on 2018/9/4.
//  Copyright © 2018年 haiger. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPSessionManager.h"


@interface NetworkEngine : AFHTTPSessionManager

+ (instancetype)sharedClient;

- (void)GETByToken:(NSString *)URLString
       data:(id)parameters
    success:(void (^)(id responseObject))success
    failure:(void (^)(NSString  *error))failure;

- (void)POSTByToken:(NSString *)URLString
        data:(id)parameters
     success:(void (^)(id responseObject))success
     failure:(void (^)(NSString  *error))failure;

- (void)GET:(NSString *)URLString
       data:(id)parameters
    success:(void (^)(id responseObject))success
    failure:(void (^)(NSString  *error))failure;

- (void)POST:(NSString *)URLString
        data:(id)parameters
     success:(void (^)(id responseObject))success
     failure:(void (^)(NSString  *error))failure;


@end

